/*
 * driver_config.h
 *
 *  Created on: Aug 31, 2010
 *      Author: nxp28548
 */

#ifndef DRIVER_CONFIG_H_
#define DRIVER_CONFIG_H

#include "LPC12xx.h"
#include "lpc_types.h"


#define CONFIG_ENABLE_FREERTOS						1

//#define CONFIG_ENABLE_DRIVER_ADC						1
//#define CONFIG_ENABLE_DRIVER_COMP						1
//#define CONFIG_ENABLE_DRIVER_CRC						1
//#define CONFIG_ENABLE_DRIVER_DMA						1
//#define CONFIG_ENABLE_DRIVER_FLASH					1
#define CONFIG_ENABLE_DRIVER_GPIO						1
//#define CONFIG_ENABLE_DRIVER_I2C						1
//#define CONFIG_ENABLE_DRIVER_PMU						1
//#define CONFIG_ENABLE_DRIVER_RTC						1
//#define CONFIG_ENABLE_DRIVER_SSP						1
#define CONFIG_ENABLE_DRIVER_SYSCTRL					1
//#define CONFIG_ENABLE_DRIVER_TIMER16					1
//#define CONFIG_ENABLE_DRIVER_TIMER32					1
//#define CONFIG_ENABLE_DRIVER_UART						1
//#define CONFIG_ENABLE_DRIVER_WDT						1

#if CONFIG_ENABLE_DRIVER_GPIO
//#define _GPIO_INT
#endif

#if CONFIG_ENABLE_DRIVER_UART
//#define _UART_INT
//#define _MODEM
//#define _RS485
//#define _IRDA
#endif

 /* DRIVER_CONFIG_H_ */

/************************** GLOBAL/PUBLIC MACRO DEFINITIONS *********************************/

#ifdef  DEBUG
/*******************************************************************************
* @brief		The CHECK_PARAM macro is used for function's parameters check.
* 				It is used only if the library is compiled in DEBUG mode.
* @param[in]	expr - If expr is false, it calls check_failed() function
*                    	which reports the name of the source file and the source
*                    	line number of the call that failed.
*                    - If expr is true, it returns no value.
* @return		None
*******************************************************************************/
#define CHECK_PARAM(expr) ((expr) ? (void)0 : check_failed((uint8_t *)__FILE__, __LINE__))
#else
#define CHECK_PARAM(expr)
#endif /* DEBUG */

/**
 * @}
 */


/* Public Functions ----------------------------------------------------------- */
/** @defgroup LIBCFG_DEFAULT_Public_Functions
 * @{
 */

#ifdef  DEBUG
void check_failed(uint8_t *file, uint32_t line);
#endif

/**
 * @}
 */

/* --------------------------------- End Of File ------------------------------ */
#endif
